package tchk.xyz.lingyuntutorminiprogram.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable; // [修改] 建议实现 Serializable 接口
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("teacher_info")
public class TeacherInfo implements Serializable { // [修改]
    private static final long serialVersionUID = 1L; // [修改]

    @TableId(value = "user_id", type = IdType.INPUT)
    private Long userId;

    @TableField("real_name")
    private String realName;

    @TableField("gender")
    private String gender;

    @TableField("introduction")
    private String introduction;

    @TableField("teaching_experience")
    private String teachingExperience;

    @TableField(value = "hourly_rate")
    private BigDecimal hourlyRate;

    @TableField(value = "overall_score")
    private BigDecimal overallScore;

    @TableField(value = "status")
    private String status;

    @TableField("id_card_front")
    private byte[] idCardFront;

    @TableField("id_card_back")
    private byte[] idCardBack;

    @TableField("qualification_data")
    private byte[] qualificationData;

    @TableField("audit_remark")
    private String auditRemark;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    // [核心新增] 添加这两个数据库中已存在的字段对应的属性
    @TableField("grade")
    private String grade;

    @TableField("teaching_experience_year")
    private Integer teachingExperienceYear;
}